import request from '@/utils/request'

export function getPlayInfo(videoId) {
  return request.get('/admin/video/getPlayInfo/videoId/' + videoId)
}

export function getVideoList(data) {
  return request.post('/admin/localVideo/index', data)
}

export function delVideo(id) {
  return request.get('/admin/localVideo/remove/id/' + id)
}
export function shelvesVideo (data) {
  return request.post('/admin/localVideo/shelves',data)
}
export function getAliyunVideoList(query) {
  return request.get('/admin/video/getVideoList', { params: query })
}

export function deleteAliyunVideo(videoId) {
  return request.get('/admin/video/deleteVideo', { params: { videoId }})
}

export function videoCreate(data) {
  return request.post('/admin/localVideo/create', data)
}

export function videoUpdate(data, id) {
  return request.post('/admin/localVideo/update/id/' + id, data)
}
